/**
 * 
 */
package com.epart.widget.domain;

import com.epart.widget.util.Base64Util;

/**
 * 회원도메인클래스
 * 
 * @author cwsong
 * @version 2011. 3. 11.
 */
public class Member {

	private int memberNo;
	private String memberId;
	private String memberPassword;

	/**
	 * @return the memberNo
	 */
	public int getMemberNo() {
		return memberNo;
	}

	/**
	 * @param memberNo
	 *            the memberNo to set
	 */
	public void setMemberNo(int memberNo) {
		this.memberNo = memberNo;
	}

	/**
	 * @return the memberId
	 */
	public String getMemberId() {
		return memberId;
	}

	/**
	 * @param memberId
	 *            the memberId to set
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * @return the memberPassword
	 */
	public String getMemberPassword() {
		return memberPassword;
	}

	/**
	 * @param memberPassword
	 *            the memberPassword to set
	 */
	public void setMemberPassword(String memberPassword) {
		this.memberPassword = memberPassword;
	}
	
	/**
	 * 비밀번호가 맞는지 확인한다.
	 * 
	 * @param memberPassword
	 * @return 확인결과
	 */
	public boolean isPasswordCorrect(String memberPassword) {
		return this.memberPassword.equals(Base64Util.encode(memberPassword));
	}

}